﻿@using Controllers
@{
    var func=new MyFunc();
}
<!DOCTYPE html>
<html>
<head>
@Html.Partial("_top")
</head>
<body>
  
@Html.Partial("_header")	
<div class="mainbg">
	<div id="headlines" class="w1200 mt20">
	
                  		@{var toutiao=func.GetList(1,1,"n");}
                    @for(var i=0;i<toutiao.Count;i++){	
                      var item=toutiao[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";
                      <h1><a href="@url" title="@item.title" traget="@target">@item.title</a></h1>
					  <h2>@(item.body)[<a href="@url" title="@item.title" traget="@target">查看详情</a>]</h2>
                    } 
		
		
	</div>

	<div class="w1200 mt20 cl">
		<div class="w260 h320 fl mr30">
			<h1 class="tit_2 fs16 fb"><a href="/list/9">通知公告</a></h1>
			<ul class="newl_2">
                  		@{var tzgg=func.GetList(9,9,"");}
                    @for(var i=0;i<tzgg.Count;i++){	
                      var item=tzgg[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";
									<li><a href="@url" title="@item.title" traget="@target">
										@(item.title.Length>20?item.title.Substring(0,20):item.title)</a></li>		
                    } 
			</ul>
		</div>
		<div id="picnews" class="fl">		
                    @{var hxwzt = func.GetList(1, 1, "",img:1);}
                    @for (var i = 0; i < hxwzt.Count; i++)
                    {
                        var item = hxwzt[i];
                        var url = string.IsNullOrEmpty(item.url) ? "/article/" + item.ID : item.url;
                        var target = string.IsNullOrEmpty(item.url) ? "_selft" : "_blank";
                    <a href="@url" title="@item.title" traget="@target"><img src="@item.pic" alt="@item.title" /><div class="txt">@item.title</div></a>
                    }
		</div>
		<div class="w380 h320 fr">
			<h1 class="newt_1 rel"><span class="abs fs16 fb">政务信息</span><a href="/list/8" class="abs">更多>></a></h1>
			<ul class="newl_1">			
                  		@{var hzwxx=func.GetList(9,8,"");}
                    @for(var i=0;i<hzwxx.Count;i++){	
                      var item=hzwxx[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
									<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>	
                    } 
			</ul>
		</div>
	</div>
</div>

	<div id="ad_1" class="w1200 mt20"><a href="#"><img src="@ViewBag.model.skin/images/ad-1.png"/></a></div>
	<div class="w1200 cl mt15">
		<div class="w380 h291 fl mr30">
			<h1 class="newt_1 rel"><span class="abs fs16 fb">政务服务</span><a href="/list/16" class="abs">更多>></a></h1>
			<ul class="newl_1">			
					@{var hzwfw=func.GetList(8,16,"");}
				@for(var i=0;i<hzwfw.Count;i++){	
				  var item=hzwfw[i];
				  var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
				  var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>	
				} 
			</ul>
		</div>
		<div class="w380 h291 fl mr30">
			<h1 class="newt_1 rel"><span class="abs fs16 fb">权责清单</span><a href="/list/6" class="abs">更多>></a></h1>
			<ul class="newl_1">
				
                  		@{var hqzqd=func.GetList(8,6,"");}
                    @for(var i=0;i<hqzqd.Count;i++){	
                      var item=hqzqd[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
			</ul>
		</div>
		<div class="w380 h291 fr">
			<h1 class="newt_1 rel"><span class="abs fs16 fb">政策法规</span><a href="/list/5" class="abs">更多>></a></h1>
			<ul class="newl_1">
                  		@{var hzcfg=func.GetList(8,5,"");}
                    @for(var i=0;i<hzcfg.Count;i++){	
                      var item=hzcfg[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
			</ul>
		</div>
	</div>
	<div class="w1200 mt20">
		<h1 class="tit_1 fs16 fb"><a href="/list/11">风采展示</a></h1>
		<ul id="fczslist" class="cl mt15">
		
                  		@{var hfczs=func.GetList(5,11,"");}
                    @for(var i=0;i<hfczs.Count;i++){	
                      var item=hfczs[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
									<li><a href="@url" title="@item.title" traget="@target"><img src="@item.pic" alt="@item.title" /></a></li>	               
                    } 
		</ul>
	</div>
	<div class="w1200 cl mt15">
		<div class="w420 h291 fl mr30">
			<h1 class="newt_1 rel"><span class="abs fs16 fb">双公示</span><a href="/list/12" class="abs">更多>></a></h1>
			<ul class="newl_1">
                  		@{var hsgs=func.GetList(8,12,"");}
                    @for(var i=0;i<hsgs.Count;i++){	
                      var item=hsgs[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
			</ul>
		</div>
		<div class="w420 h291 fl">
			<h1 class="newt_1 rel"><span class="abs fs16 fb">行政许可</span><a href="/list/10" class="abs">更多>></a></h1>
			<ul class="newl_1">
				
                  		@{var hxzxk=func.GetList(8,10,"");}
                    @for(var i=0;i<hxzxk.Count;i++){	
                      var item=hxzxk[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
			</ul>
		</div>
		<div class="w300 fr">
			<h1 class="newt_1 rel"><span class="abs fs16 fb">在线互动</span></h1>
			<ul id="zxhd_1">
				<li><a href="/toupiao/1" class="ico-1">问券调查</a></li>
				<li><a href="/liuyan/局长信箱" class="ico-2">局长信箱</a></li>
				<li><a href="/liuyan/网上投诉" class="ico-3">在线投诉</a></li>
				<li><a href="/liuyan/意见建议" class="ico-4">意见建议</a></li>
			</ul>
		</div>
	</div>
	<div id="ad_2" class="w1200 mt20 cl"><a href="#"><img src="@ViewBag.model.skin/images/lygy-1.png"/></a><a href="#"><img src="@ViewBag.model.skin/images/lylh-1.png"/></a><a href="#"><img src="@ViewBag.model.skin/images/jswmzl-1.png"/></a></div>
	<div id="lnklist" class="w1200 mt20">
		<h1 class="tit_1 fs16 fb">友情链接</h1>
		<div>	
				@{var link=func.GetLink();}
                    @for(var i=0;i<link.Count;i++){	
						if(i>0){@Html.Raw("|")}
					<a href="@link[i].url" target="_blank">@link[i].title</a>
				}</div>
	</div>


	<div id="footer">
		@Html.Raw(ViewBag.model.copyright)
	</div>
	<script type="text/javascript">
		$(function(){
			$(".nav ul li").eq(0).children("a").addClass("current");
		})
	</script>
</body>
</html>
